<?php
header("Content-Type: text/html; charset=gbk");
require '../../packages/connect_database.php';
mysql_select_db("auction");
$update_string = "UPDATE auction SET ";
for($i = 1;$i <= 6;$i++)
	$update_string .= ("img" . $i . " = '" . $_GET["img" . $i] . "',");
$update_string .= "info = '" . $_GET["info"] . "',start_price = " . $_GET["start_price"] . ",save_price = " . $_GET["save_price"];
$update_string .= " WHERE time = '" . $_GET["time"] . "'";
if(mysql_query($update_string))
	echo "ok";
else
	echo mysql_error();
